package com.whcoding.designpatterns.pattern.adapter;

/**
 * @program: spring-boot-learning
 * @description:电压适配器角色
 * @author: whcoding
 * @create: 2022-09-20 16:57
 **/
public class VoltageAdaptor extends Voltage220V implements IVoltage5V {
	@Override
	public int output5V() {
		int voltage = output220V();
		return voltage / 44;
	}
}
